package com.raycloud.java.dada.service.impl;

import com.raycloud.java.dada.base.BaseService;
import com.raycloud.java.dada.base.Config;
import com.raycloud.java.dada.model.ComplainDada;
import com.raycloud.java.dada.result.ResultModel;
import com.raycloud.java.dada.service.inter.ComplaintService;
import com.raycloud.java.dada.util.BasicURL;

/**
 * Created by hechuan on 2017/6/24.
 *
 * 投诉接口实现
 */
public class ComplaintServiceImpl extends BaseService implements ComplaintService{

    public ComplaintServiceImpl(Config config){
        super(config);
    }

    /**
     * 投诉达达
     *
     * @param complainDada
     * @return
     */
    @Override
    public ResultModel complaintDada(ComplainDada complainDada) throws Exception {
        String result = doPost(complainDada, BasicURL.COMPLAINT_DADA);
        ResultModel model = strToResultModel(result);

        return model;
    }
}
